# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit distutils eutils

MY_PN="tracjsganttplugin"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Trac plugin which allows ticket data to be displayed in a Gantt chart in a wiki page"
HOMEPAGE="http://trac-hacks.org/wiki/TracJsGanttPlugin"
SRC_URI="http://trac-hacks.org/changeset/latest/${MY_PN}/${PV}?old_path=/&format=zip -> ${P}.zip"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="www-apps/trac"

S="${WORKDIR}/${MY_PN}/${PV}"

pkg_postinst() {
	elog "To install the plugin for a desired environment \"foo\""
	elog "add this to its trac.ini:"
	elog "[components]"
	elog "tracjsgantt.* = enabled"
	elog ""
	elog "For configuration see the homepage"
	elog "After the configuration it is required to restard the web service."
}
